package com.jinhongone.pattern.creater.singleton.demo6;


public class Test {

    public static void main(String[] args) {

        Singleton i1 =  Singleton.INSTANCE;
        Singleton.INSTANCE.setName("123");
        Singleton i2 =  Singleton.INSTANCE;

        System.out.println(i1 == i2);
        System.out.println(i1.getName().equals(i2.getName()));
    }
}
